/*!
 * Node-traversal module v1.0.0 of jRaiser javascript library
 * http://code.google.com/p/jraiser/
 *
 * Author: Heero.Luo
 * Licensed under MIT license
 *
 * Date: Mon Jun 04 2012 15:40:45 GMT+0800
 */
define(function(e,t,n){"use strict";n.exports={nodeApis:{children:function(){var e=[];return this.forEach(function(t){var n=t.firstChild;while(n)n.nodeType===1&&e.push(n),n=n.nextSibling}),e=new this.constructor(e),e.length>1&&e.uniqueSort(),e},next:function(){var e=[];return this.forEach(function(t){for(;;){t=t.nextSibling;if(!t)break;if(t.nodeType===1){e.push(t);break}}}),new this.constructor(e)},prev:function(){var e=[];return this.forEach(function(t){for(;;){t=t.previousSibling;if(!t)break;if(t.nodeType===1){e.push(t);break}}}),new this.constructor(e)},parent:function(){var e=[];return this.forEach(function(t){e.push(t.parentNode)}),new this.constructor(e)}}}})